package com.fahai.web.dao;

import com.fahai.common.CommonMapper;
import com.fahai.web.entity.CallFlowno;
import com.fahai.web.vo.CallFlownoVo;
import com.fahai.web.vo.CallRecordVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CallManageDao extends CommonMapper<CallFlowno> {

    public List<CallFlownoVo> selectRecordListByLawyerId(CallFlownoVo callFlownoVo);
    public int selectRecordCount(CallFlownoVo callFlownoVo);


    public List<CallRecordVo> selectCallManageList(CallRecordVo callRecordVo);
      /* * 获取总页数
     * @param
     * @return
             */
    public int getCount(CallRecordVo callRecordVo);




    public List<CallFlownoVo> selectRecordListByLawyerIdFor(CallFlownoVo callFlownoVo);

    public int selectRecordCountFor(CallFlownoVo callFlownoVo);



    /**
     * 查询通话记录，按照小时排序
     * @return
     */
    public List<Map<String,Object>> selectChartForHours(@Param(value = "createTime")String createTime,@Param(value = "flag")Integer flag);

    /**
     * 查询通话记录，按照每天排序
     * @return
     */
    public List<Map<String,Object>> selectChartForDays(@Param(value = "createTime")String createTime,@Param(value = "flag")Integer flag);



    /**
     * 查询通话记录，按照月份排序
     * @return
     */
    public List<Map<String,Object>> selectChartForMonths(@Param(value = "createTime")String createTime,@Param(value = "flag")Integer flag);
}